package com.mavenq.fly.config;

import lombok.Getter;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

@Component
@ConfigurationProperties(prefix = "upload")
@Getter
@Slf4j
public class UploadProperties {

    private Map<String, List<String>> fileMap;

    public void init() {
        log.warn("初始化完成下载类型：{}", fileMap);
    }

    public void setFileMap(Map<String, List<String>> fileMap) {
        this.fileMap = fileMap;
        init();
    }
}
